// 题库分类列表
export interface CateItem {
    id: number
    name: string
    description: string
    parent_id: number
    level: number
    sort_order: number
    creator_id: number
    created_at: string
    updated_at: string
    question_num: number
    children?: CateItem[]
}

export interface CateCreateItem {
    id?: number
    name: string
    description: string
    parent_id: number | null
}

// 題目選項
export interface QuestionAnswerItem {
    id: number
    answer_text: string
    answer_score: number
    answer_feedback: string
}

// 题目详情
export interface QuestionItem {
    answer: QuestionAnswerItem[]
    answer_feedback: {
        fail: string
        right: string
        show_right: number
    }
    category_id: number
    created_at: string
    creator_id: number
    deleted_at: number
    id: number
    index: number
    is_range: number
    question_detail: string
    question_feedback: string
    question_no: string
    question_point: string
    question_type: number
    score: string
    updated_at: string
    isMark: boolean
}

export interface QuestionCreateItem {
    id?: number
    category_id: null | number
    question_point: string
    question_detail: string
    question_feedback: string
    score: string
    question_no: string
    is_range: number
    question_type: number
    answer: QuestionAnswerItem[]
    answer_feedback: {
        fail: string
        right: string
        show_right: number
    }
}
